package com.blrs.mapper;

import java.util.List;
import com.blrs.domain.PolicyReception;
import com.blrs.domain.vo.FeedBackVo;
import org.apache.ibatis.annotations.Param;

/**
 * 政策接收Mapper接口
 * 
 * @author ruoyi
 * @date 2024-01-09
 */
public interface PolicyReceptionMapper 
{
    /**
     * 查询政策接收
     * 
     * @param policyId 政策接收主键
     * @return 政策接收
     */
    public PolicyReception selectPolicyReceptionByPolicyId(String policyId);

    /**
     * 查询政策接收列表
     * 
     * @param policyReception 政策接收
     * @return 政策接收集合
     */
    public List<PolicyReception> selectPolicyReceptionList(PolicyReception policyReception);

    /**
     * 新增政策接收
     * 
     * @param policyReception 政策接收
     * @return 结果
     */
    public int insertPolicyReception(PolicyReception policyReception);

    /**
     * 修改政策接收
     * 
     * @param policyReception 政策接收
     * @return 结果
     */
    public int updatePolicyReception(PolicyReception policyReception);

    /**
     * 删除政策接收
     * 
     * @param policyId 政策接收主键
     * @return 结果
     */
    public int deletePolicyReceptionByPolicyId(String policyId);

    /**
     * 批量删除政策接收
     * 
     * @param policyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePolicyReceptionByPolicyIds(String[] policyIds);

    void batchInsertPolicyReception(@Param("list") List<PolicyReception> policyReceptions);

    Long selectReadCountByPolicyId(String id);

    int updateReadCount(@Param("id") String id,@Param("receiverId") Long receiverId);

    int updateFeedback(FeedBackVo feedBackVo);

    List<String> selectEnterprise(String id);

    boolean selectFeedbackByPolicyId(@Param("id") String id, @Param("orgId")Long orgId);

    List<String> selectInterestedEnterprise(String id);
}
